#!/bin/bash

#============ get the file name ===========
Folder_A=`pwd`"/"
key=0
for file_a in ${Folder_A}/*
  do
    temp_file=`basename $file_a`
      if test -d $temp_file
      then
        key=$(expr $key + 1)
        echo "构建第[""$key""]个:"$temp_file
        cd ${Folder_A}$temp_file || exit
        make build
        cd ${Folder_A} || exit
        echo ${Folder_A}$temp_file
      fi
  done